﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using Dal;

namespace Bll
{
    public class UsertBLL
    {
        #region 注册
        /// <summary>
        /// 注册
        /// </summary>
        UsertDAL dal = new UsertDAL();
        public int Regin(string account, string pwd, string name, string addr, string tel)
        {
            return dal.Regin(account, pwd, name, addr, tel);

        }
        #endregion

        #region 登陆
        /// <summary>
        /// 登陆
        /// </summary>
        /// <param name="account"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public int login(string account, string pwd)
        {
            return dal.login(account, pwd);
        }
        #endregion

        #region 显示用户
        public List<Usert> showuser()
        {
            return dal.showuser();
        }
        #endregion

    }
}
